package arithmetic.jinritoutiao1.taotiao3;

/**
 * Created by jiangfeng on 2018/3/24.
 */
public class Main2 {

    public static void main(String[] args) {
// 0="",1=" ?",2="-"
        String a1 = "00100010001000100010";//1
        String a2 = "02200001022010000220";//2
        char[] temp = a2.toCharArray();
        String result = "6";
        for (int i = 0; i < temp.length; i++) {
            if (i % 4 == 0) {
                result += "\n";
            }
            if (temp[i] == '0') {
                result += " ";
            }
            if (temp[i] == '1') {
                result += " |";
            }
            if (temp[i] == '2') {
                result += "-";
            }


        }
        System.out.println(result);

    }
}
